home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacApp Release 10 / MacApp Release 10 - HD Ready / Examples / A-Z / Q / QuickTime / Simple QuickTime View / MMovieViewer.cp next >
Encoding:
Text File  |  1996-04-03  |  1.1 KB  |  43 lines  |  [TEXT/MPS ]

  1. //----------------------------------------------------------------------------------------
  2. // MMovieViewer.cp
  3. // Copyright © 1996 by Apple Computer, Inc. All rights reserved. 
  4. //----------------------------------------------------------------------------------------
  5.  
  6. #if qDrag
  7. #ifndef __UDRAGDROP__
  8. #include "UDragDrop.h"
  9. #endif
  10. #endif
  11.  
  12. #ifndef __UMovieViewer__
  13. #include "UMovieViewer.h"
  14. #endif
  15.  
  16. #ifndef __UQUICKTIME__
  17. #include "UQuickTime.h"
  18. #endif
  19.  
  20. //----------------------------------------------------------------------------------------
  21. // main: 
  22. //----------------------------------------------------------------------------------------
  23. #pragma segment Main
  24.  
  25. void main ()
  26. {
  27.     InitUMacApp(8);                                        // Initialize MacApp with 8 calls to MoreMasters
  28. #if qDrag
  29.     if (HasDragManager())
  30.         InitUDragManager();
  31. #endif
  32.     InitUQuickTime();
  33.     
  34.     TMovieViewerApplication* aMovieViewerApplication = new TMovieViewerApplication;
  35.     aMovieViewerApplication->IMovieViewerApplication();        
  36.     aMovieViewerApplication->Run();                        
  37. } // main 
  38.  
  39. //----------------------------------------------------------------------------------------
  40. // End of MMovieViewer.cp
  41.  
  42. #pragma segment Inline
  43.